package com.czy.workflow.core.model;

import lombok.Data;

import javax.persistence.*;
import java.util.List;

/**
 * 业务文档
 */
@MappedSuperclass
@Data
public class FlowDocument {

    @Enumerated(EnumType.STRING)
    @Column(name = "doc_status", columnDefinition = "varchar(20) comment '文档状态'")
    DocStatus docStatus;

    @OneToMany
    @JoinColumn(name = "doc_id")
    List<FlowRuntimeNode> runtimeNodes;

}
